import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type Works } from "../../interface";

/**
 * 保存或更新 Works 信息
 * /works
 */
export function postWorks(input: Works, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<boolean>>(`/works`, input, config);
}
